<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<form action="ProductAction!add.action" method="post">
	<table id="noborder_table" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td>商品货号:</td>
			<td>${code }</td>
		</tr>
		<tr>
			<td>商品名称:</td>
			<td>${name }</td>
		</tr>
		<tr>
			<td>商品类型:</td>
			<td>${category.name }</td>
		</tr>
		<tr>
			<td>
				<s:if test="operate=='purchase'">买入价格:</s:if>
				<s:else>卖出价格:</s:else>
			</td>
			<td>
				<input type="text" name="buyPrice" class="input-small" />
			</td>
		</tr>
		<tr>
			<td>
				<s:if test="operate=='purchase'">买入数量:</s:if>
				<s:else>卖出数量:</s:else>
			</td>
			<td>
				<input type="text" name="amount" class="input-small" />
			</td>
		</tr>
		<tr>
			<td>
				<input type="submit" value="确定" class="button" />
			</td>
			<td>
				<input type="button" value="取消" class="button" />
			</td>
		</tr>
	</table>
</form>
